package com.fh.wanandroid.ui.mainpager;


import com.fh.wanandroid.base.BaseRxPresenter;
import com.fh.wanandroid.base.BaseView;
import com.fh.wanandroid.ui.mainpager.bean.BannerData;
import com.fh.wanandroid.ui.mainpager.bean.FeedArticleListData;

import java.util.List;

public interface MainPagerContract  {



    interface View extends BaseView {

        void refreshArticle(FeedArticleListData articleBean);

        void appendArticle(FeedArticleListData articleBean);

        void getBanner(BannerData bannerData);


        void loadDataFail(String msg);
    }


    abstract class Presenter extends BaseRxPresenter<View> {

        /**
         * 加载首页文章
         */
        abstract void loadInitData();

        /**
         * 加载更多文章
         */
        abstract void loadMoreData();

        abstract void getBannerData();
    }
}
